import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],

  server: {
    host:"0.0.0.0",
    port: 8088,
    proxy: {//配置一下跨域
      '/api': {
        target: 'http://192.168.0.111:8089',
        changeOrigin: true,
        // rewrite: path => path.replace(/^\/api/, '')
      }
    },
  },


  
})
